package com.dx.as.listener;

import com.dx.as.common.ILoadListener;

/**
 * Created by d_xxiang on 2018/3/27.
 */

public class IPresenter extends ILoadListener{

    private HttpRequestErrorListener httpRequestErrorListener;
    public void setHttpErrorListener(HttpRequestErrorListener httpErrorListener){
        this.httpRequestErrorListener = httpErrorListener;
    }

    @Override
    public void onResponse(Object response, int flg) {

    }

    @Override
    public void onFailure(Throwable t) {
        httpRequestErrorListener.onFailure(t);
    }

    @Override
    public void onFailure(int code, String errorMsg) {
        httpRequestErrorListener.onFailure(code,errorMsg);
    }
}
